package edu.ynu.se.xiecheng.achitectureclass.controller;

import edu.ynu.se.xiecheng.achitectureclass.dao.UserDAO;
import edu.ynu.se.xiecheng.achitectureclass.dto.OrderDTO;
import edu.ynu.se.xiecheng.achitectureclass.entity.Commodity;
import edu.ynu.se.xiecheng.achitectureclass.entity.Order;
import edu.ynu.se.xiecheng.achitectureclass.entity.User;
import edu.ynu.se.xiecheng.achitectureclass.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "用户控制器")
@RestController
@RequestMapping("/user")
public class UserController extends LogicController<UserService, UserDAO, User,Long>{
    public UserController(@Autowired UserService service) { super(service); }

    @ApiOperation("用户登录")
    @GetMapping("/login")
    public String login(){
        return null;
    }

    @ApiOperation("获取未支付订单")
    @GetMapping("/unpayorder")
    public List<OrderDTO> getUnpayOrder(){
        return null;
    }

    @ApiOperation("获取已支付订单")
    @GetMapping("/payedorder")
    public List<OrderDTO> getPayedOrder(){
        return null;
    }


}
